home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
acctg
/
nonpr_gl
/
finstall.bat
< prev
next >
Wrap
DOS Batch File
|
1989-08-20
|
2KB
|
51 lines
echo off
if %2x == x goto instruct
echo This installs the Nonprofit General Ledger program and documentation
echo to floppy disks. You'll need two blank, formatted floppy disks.
echo It installs from the disk in drive %1: to disks in drive %2:.
echo
echo If this is NOT what you wish to do, press the Ctrl key and the C key
echo at the same time, and then type Y. Otherwise
pause
echo
echo OK, here we go. If you see error messages, enter %0 with
echo no other parameters to see instructions and then try again.
echo
echo First we'll copy the program to a diskette in drive %2:.
echo Put a blank diskette in drive %2:.
pause
echo
echo Extracting the program from the archive file . . .
%1:arce %1:ngl112 *.exe %2:\
if errorlevel 1 goto badarce
echo
echo Next we'll copy the manual to a diskette in drive %2:.
echo Remove the diskette from drive %2:.
echo Put another blank diskette in drive %2:.
pause
echo
echo Extracting the documentation from the archive file.
%1:arce %1:ngl112 *.doc %2:\
if errorlevel 1 goto badarce
goto goodarce
:badarce
echo
echo ERROR -- ARCHIVE EXTRACTION FAILED
echo Enter %0 to see instructions and then try again.
goto end
:goodarce
echo
echo Installation complete. The program is on the first floppy disk,
echo and the manual is on the second. Read the manual, NGL111.DOC.
goto end
:instruct
echo
echo Oops -- you must enter two letters after %0. Type letters only,
echo no colons, and separate %0 and the letters with spaces.
echo The first letter is the floppy disk drive you are installing FROM.
echo The second letter is the floppy disk you are installing TO.
echo For instance, to install from drive A: to drive B:, Enter:
echo
echo %0 A B
:end